//
//  EventDetailTableViewController.h
//  StanfordEvents
//
//  Created by Gongmyung on 7/20/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Event.h"
#import "EventDescriptionTableCell.h"
#import "EventDateTableCell.h"
#import "JSON.h"
#import "ASIFormDataRequest.h"
#import "Attendee.h"
#import "AttendeeListViewController.h"

@class StanfordEventsAppDelegate;

@protocol EventDetailViewDelegate <NSObject>
@required
- (void)didCheckIn;
@end

@interface EventDetailTableViewController : UITableViewController {
    Event *thisEvent;
    UIBarButtonItem *addButton;
    bool setHidden;
    
    id <EventDetailViewDelegate> delegate;
}

- (id)initWithStyle:(UITableViewStyle)style withEvent:(Event*)e;
- (id)initWithStyle:(UITableViewStyle)style withEvent:(Event*)e setHidden:(bool)hidden;

- (IBAction) checkIn;

@property (nonatomic, assign) bool setHidden;
@property (nonatomic, retain) id <EventDetailViewDelegate> delegate;

@end